<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="item form-group">
    <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">指派权限 <span
        class="required"> </span>
    </label>

    <div class="col-md-6 col-sm-6 col-xs-12" style="padding-top: 7px;">
        <ul style="list-style: none;padding-left: 0px">
            <li th:if="${right1.rightType=='Folder'}" th:each="right1:${rights}">
                <input type="checkbox" name="rightCodes" th:value="${right1.rightCode}" th:checked="${roleRights.contains(right1)}"/><span
                    th:text="${right1.rightText}">一级权限</span>
                <ul style="list-style: none">
                    <li th:if="${right2.rightType=='Document' && right2.rightParentCode==right1.rightCode}"
                        th:each="right2:${rights}"><input type="checkbox" name="rightCodes"
                                                               th:value="${right2.rightCode}"
                                                               th:checked="${roleRights.contains(right2)}"/><span
                            th:text="${right2.rightText}">二级权限</span>
                    </li>

                </ul>

            </li>

        </ul>

    </div>

</div>
</body>
</html>